package ywpt.service.client;

import java.util.List;

import org.hibernate.criterion.DetachedCriteria;

import ywpt.model.ClientLinkman;

public interface ClientLinkmanService {

	public abstract  ClientLinkman getClientLinkmanById(Long id);

	public abstract void saveClientLinkman(ClientLinkman clientLinkman,
			Long clientId, Long typeId);

	public abstract void updateClientLinkman(ClientLinkman clientLinkman,
			Long clientId, Long typeId);

	public abstract void removeClientLinkman(Long id);

	public abstract int getClientLinkmanCountByName(String manName,Long clientId);
	
	public abstract List<ClientLinkman> getClientLinkmanByManName(String manName,Long clientId, int start, int size);

	public abstract List<ClientLinkman> getClientLinkmans(
			DetachedCriteria query);
}
